package com.dgut.pojo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

@Data
@Entity
@IdClass(RoleRelationPK.class)
public class Role {
    @Id
    private Long id;
    @Id
    private String role;
}
